package cn.jantd.modules.activiti.extract;


import cn.jantd.core.system.vo.LoginUser;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

/**
 * @author zhuxiaomeng
 * @date 2017/12/4.
 * @email 154040976@qq.com
 *
 * 管理工具类
 */
public class CommonUtil {

  public static LoginUser getUser(){
    Subject subject = SecurityUtils.getSubject();
    LoginUser sysUser = (LoginUser) subject.getPrincipal();
    return sysUser;
  }

}

  /**
   * 获取权限
   * @return
   */
  /*public static List<SysPermission> getPermission(){
    SysUser user=CommonUtil.getUser();
    if(user!=null){

    }
  }

}
*/